package com.cn.lp.export.server.entity.executor;

import com.cn.lp.export.server.controller.CreateExportTaskRequest;
import com.cn.lp.export.server.entity.ExportStatus;

/** 导出执行器
 * Created by qirong on 2020/10/18.
 */
public interface ExportExecutor {

    /**
     * 导出
     * @param taskId
     * @return 导出状态
     * @see ExportExecutor
     *
     */
    ExportStatus export(long taskId);

    /**
     * 创建导出资源路径
     * @return
     */
    ExportResult createResultUrl(CreateExportTaskRequest createRequest);

}
